package com.example.demo.client.evt.sysbasequery;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

@ApiModel("用户组角色树参数")
public class GetTreeOfGroupEvt implements Serializable {
    private static final long serialVersionUID = 6023991150406513064L;
    @ApiModelProperty("用户组id")
    private Long groupId;
    @ApiModelProperty("1：新增，2：编辑")
    @NotNull
    private Short type;
    @ApiModelProperty("当前登录用户名")
    private String loginName;

    public String getLoginName() {
        return loginName;
    }

    public void setLoginName(String loginName) {
        this.loginName = loginName;
    }

    public Long getGroupId() {
        return groupId;
    }

    public void setGroupId(Long groupId) {
        this.groupId = groupId;
    }

    public Short getType() {
        return type;
    }

    public void setType(Short type) {
        this.type = type;
    }

    @Override
    public String toString() {
        return "GetTreeOfGroupEvt{" +
            "groupId=" + groupId +
            ", type=" + type +
            '}';
    }
}
